42645a4e513eb3d8ff00fec1be1843c92eafd364,applications/product/src/org/ofbiz/product/product/KeywordIndex.java,KeywordIndex,indexKeywords,#GenericValue#boolean#,51
Before Change
}
keywords.put(product.getString("productId").toLowerCase(), new Long(pidWeight));
addWeightedKeywordSourceString(product, "productName", strings);
addWeightedKeywordSourceString(product, "internalName", strings);
addWeightedKeywordSourceString(product, "brandName", strings);
addWeightedKeywordSourceString(product, "description", strings);
After Change
keywords.put(product.getString("productId").toLowerCase(), new Long(pidWeight));
// Product fields - default is 0 if not found in the properties file
if (!"0".equals(UtilProperties.getPropertyValue("prodsearch", "index.weight.Product.productName", "0"))) {
addWeightedKeywordSourceString(product, "productName", strings);
}
if (!"0".equals(UtilProperties.getPropertyValue("prodsearch", "index.weight.Product.internalName", "0"))) {
addWeightedKeywordSourceString(product, "internalName", strings);